package com.sca.commontest.test.designpattern.decorator;

/**
 * @Author: denglei
 * @Date: 2022/1/5 10:44
 * @Description:
 */
public class Decorator_one extends Decorator   {
    public Decorator_one(Human human) {
        super(human);
    }
    public void goClothespress(){
        System.out.println("去衣柜看看。。。");
    }

    public void findPlaceOnMap(){
        System.out.println("在map上找找。。。");
    }

    @Override
    public void wearClothes() {
        super.wearClothes();
        goClothespress();
    }

    @Override
    public void walkToPlace() {
        super.walkToPlace();
        findPlaceOnMap();
    }
}
